document.write(`<script src="h5/YFree/YFlutterPlugin.js" defer></script>`);
document.write(`<script type='text/javascript' src='libs/vConsole.js'></script>`);
document.write(`<script type='text/javascript' src='libs/jweixin-1.4.0.js'></script>`);
document.write(`<script type='text/javascript' src='libs/AppPlugin+App.js'></script>`);
document.getElementById("div_logo2").innerHTML = `
    <div id="div_logo" class="div_logo">
       <div class="loading_c" style="transform: translate(-50%, -50%)">
           <div class="c">
               <div class="s s1" data-colorb="#4596e7" data-color-after="#ef9a3d"></div>
               <div class="s s2" data-colorb="#8e2bb3" data-color-after="#ffe864"></div>
               <div class="s s3" data-colorb="#cf3c5f" data-color-after="#64af59"></div>
               <div class="s s4" data-colorb="#4dbbd6" data-color-after="#e36358"></div>
           </div>
       </div>
    </div>
`;

const isMiniProgram = /miniProgram/i.test(navigator.userAgent.toLowerCase());
const _query = window.location.href.split("&arguments=");

function onReady() {
    document.getElementById("div_logo").style.display = "none";
    document.getElementsByTagName("flt-glass-pane").item(0).addEventListener("touchstart", (e) => {
        e.preventDefault();
    });
    if (window.location.href.split("?mode=debug").length > 1) {
        let vConsole = new VConsole();
        vConsole.setOption('disableLogScrolling', false);
    }
    if (_query.length > 1 && yFromJson(decodeURIComponent(_query[1].split("&t=")[0]))["intent"] != null) {
        let css = document.createElement("style");
        css.appendChild(document.createTextNode(`
            #div_logo {
                display: none;
            }
        `));
        document.head.appendChild(css);
    }
}